package dataUser

import (
	user_pb "mxshop/api/user/v1"
	IUser "mxshop/app/mxshop_api/api/internal/data/user"
)

type userFactory struct {
	uc user_pb.UserClient
}

func (uf userFactory) User() IUser.User {
	return newUser(uf.uc)
}

func NewUser(uc user_pb.UserClient) IUser.UserData {
	return &userFactory{
		uc: uc,
	}
}
